home *** CD-ROM | disk | FTP | other *** search
/ GFX Sensations 1 / Graphic Sensations - Volume 1.iso / tools / amiga / 3d_tools / irit40s.lha / Irit / docs / makefile.ami < prev    next >
Encoding:
Makefile  |  1993-12-30  |  2.6 KB  |  109 lines

  1. #
  2. # Makefile for the IRIT solid modeler documentation (unix).
  3. #
  4.  
  5. #-----
  6. #
  7. # The XXX_DIR variables below MUST have ABSOLUTE path. Since this file
  8. # is sourced from several directories relative path specification will
  9. # be simple wrong.
  10. #
  11.  
  12. SRC_DIR = Work:T/Irit
  13. #
  14. # All libraries created will be installed into the LIB_DIR directory.
  15. #
  16. LIB_DIR = $(SRC_DIR)/lib
  17.  
  18. #
  19. # All includes files associated with the installed libraries will be
  20. # installed into the INC_DIR directory.
  21. #
  22. INC_DIR = $(SRC_DIR)/inc
  23.  
  24. #
  25. # All binaries created will be installed into the BIN_DIR directory.
  26. #
  27. BIN_DIR = $(SRC_DIR)/bin
  28.  
  29. #
  30. # Uncomment the correct set of variables to be used or modify it for
  31. # your system.
  32. #
  33. # -D flags:
  34. #
  35. # -D__GL__ - if your system supports gl graphics library (SGI 4d & IBM R6000).
  36. #
  37. # -D__X11__ - if your system supports X11. Only one of __GL__ or __X11__ should
  38. #    be used.
  39. #
  40. #  Emulation to the following function are available by defining the
  41. #  following. Look at misc_lib/xgeneral.c/h for implementation.
  42. # -DGETCWD - if getcwd is not defined in this system.
  43. # -DSTRSTR - if strstr is not defined in this system.
  44. # -DSTRDUP - if strdup is not defined in this system.
  45. # -DSTRICMP - if stricmp and strincmp are not defined in this system.
  46. #
  47. # -DTIMES - if times is defined in your system, otherwise uses time.
  48. #
  49. # -DRAND - if the (s)rand random number generator exists.
  50. # -DRAND48 - ?rand48 random number generators exists.
  51. #    If non of RAND or RAND48 are defined, (s)random is used.
  52. #
  53. # -DNO_VOID_PTR - if your C compiler does not support (void *).
  54. #
  55. # -DUSE_VARARGS - if your system does not have stdarg.h and have the old
  56. #    varargs.h.
  57. #
  58. # -DNO_CONCAT_STR - if 'char *p = "This is" "one string";' is illegal.
  59. #
  60. # -DGRAPDRVS - any combination of of 'amidrvs', 'nuldrvs'.
  61. #
  62. # Other, possibly useful defines (for c code development):
  63. #
  64. # -DDEBUG - for some debugging functions in the code (that can be invoked
  65. #        from a debugger).
  66. #
  67.  
  68. #
  69. # Flags for Amiga using gcc
  70. #
  71. CC = gcc
  72. DFLAGS = -Dmain=mymain -DTIMES
  73. CFLAGS = $(DFLAGS) -m68040 -m68881
  74. MORELIBS = $(LIB_DIR)/libamg.a
  75. GRAPDRVS = nuldrvs amidrvs
  76.  
  77. #
  78. # Default rule for compilation.
  79. #
  80. .c.o:
  81.     $(CC) $(CFLAGS) -I. -I$(INC_DIR) -c $<
  82.  
  83. #
  84. # All libraries.
  85. LIBS = -L$(LIB_DIR) -lgeom -lprsr -lcagd -lmisc #-lgif
  86. #-----
  87.  
  88. all:    irit.tex irit.doc irit.hlp
  89.  
  90. HELP_OBJS = irithlp.o
  91.  
  92. irithlp: $(HELP_OBJS)
  93.     $(CC) $(CFLAGS) -s -o irithlp $(HELP_OBJS) $(MORELIBS)
  94.  
  95.  
  96. install: irit.hlp
  97.     Copy irit.hlp $(BIN_DIR)
  98.     Delete irit.hlp
  99.  
  100. irit.tex: irithlp irit.src
  101.     irithlp -l -o irit.tex irit.src
  102.  
  103. irit.hlp: irithlp irit.src
  104.     irithlp -h -o irit.hlp irit.src
  105.  
  106. irit.doc: irithlp irit.src
  107.     irithlp -t -o irit.doc irit.src
  108.  
  109.